package guoanmaker.personal.business.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import guoanmaker.personal.business.model.PersonalAppraiseStates;

/**
 * 
* @ClassName: PersonalAppraiseStatesRepository 
* @Description: 评价类别Repository
* @author Yvonne_MGL
* @date 2017年7月20日 下午2:58:28 
*  
 */
public interface PersonalAppraiseStatesRepository extends JpaRepository<PersonalAppraiseStates, String>, JpaSpecificationExecutor<PersonalAppraiseStates>{
	/**
	 * 
	* @Description: 查询isUsed=1的所有评价类别
	* @param @return
	* @author Yvonne_MGL 
	* @date 2017年7月20日 下午3:14:21     
	* @return List<PersonalAppraiseStates>    
	* @throws 
	 */
	@Query("select s from PersonalAppraiseStates s where s.isUsed=1")
	public List<PersonalAppraiseStates> findAppraiseStatesIsUsed();
}
